package com.saku.uiprojecttest;/**
 * Created by liumin on 2017/2/27.
 */


import android.app.Application;

import com.saku.uiprojecttest.components.SakuComponent;
import com.saku.uiprojecttest.modules.ApiModule;

/**
 * User: Missa
 * Date: 2017-02-27
 * Time: 22:27
 * Description:
 */
public class SakuApplication extends Application {
    private static SakuComponent sSakuComponent;
    private static SakuApplication sInstance;
    @Override
    public void onCreate() {
        super.onCreate();
        sInstance = this;
        sSakuComponent = SakuComponent.Initializer.init(this);
    }

    public static SakuApplication getInstance() {
        return sInstance;
    }

    public static SakuComponent getComponent() {
        return sSakuComponent;
    }
}
